﻿using System;
using System.Net;


namespace Tulde.Core
{

    /// <summary>
    /// Creates a Singleton of IViewModelSerializer.  This class should be removed if 
    /// we implement an IOC Container.
    /// </summary>
    public static class ViewModelSerializerFactory
    {
        private static IViewModelSerializer _instance;
        public static IViewModelSerializer Instance
        {
            get
            {
                return _instance;
            }
        }

        static ViewModelSerializerFactory()
        {
            _instance = IoC.Resolve<IViewModelSerializer>();
        }
    }
 

}
